<template>
    <div>
        <van-sticky offset-top="86px">
            <el-tabs v-model="activeName" type="card" style="background: #fffbfb">
                <el-tab-pane label="节拍展示" name="first"></el-tab-pane>
                <el-tab-pane label="视频展示" name="second"></el-tab-pane>
            </el-tabs>
        </van-sticky>

        <!--style="position: relative; top: 70px; z-index: 1000"-->
        <div v-if="activeName === 'first'" >
            <Linecharts></Linecharts>
        </div>
        <div v-if="activeName === 'second'" style="position: relative; top: 70px">
            <iframe src="http://10.112.6.250:8888/api/v2/video" frameborder="0"
                    style="height: 350px; width: 380px"></iframe>
        </div>
    </div>
</template>

<script>
// eslint-disable-next-line vue/multi-word-component-names
import Linecharts from './Linecharts'

export default {
    components: {Linecharts},
    // eslint-disable-next-line vue/multi-word-component-names
    name: "Tabs2",
    data() {
        return {
            activeName: 'first'
        };
    },
    mounted() {

    },
    methods: {}
};
</script>

<style scoped>
::v-deep .el-tabs__nav-scroll {
    width: 51%;
    justify-content: center;
    margin: 0 auto
}

</style>
